const install = (Vue, vm) => {

	// 获取手机验证码
	let PhoneGetCode = (params = {}) => vm.$u.post('api/Login/PhoneGetCode', params);

	// 手机号码登录
	let NewPhoneLogin = (params = {}) => vm.$u.post('api/Login/NewPhoneLogin', params);

	// 绑定手机号码
	let WeChatBinding = (params = {}) => vm.$u.post('api/Login/WeChatBinding', params);

	// 地址列表
	let addressList = (params = {}) => vm.$u.post('api/Address/AddressList', params);

	// 添加地址
	let AddressAdd = (params = {}) => vm.$u.post('api/Address/AddressAdd', params);

	// 编辑地址
	let AddressUpdate = (params = {}) => vm.$u.post('api/Address/AddressUpdate', params);

	// 删除地址
	let AddressDelete = (params = {}) => vm.$u.post('api/Address/AddressDelete', params);

	// 商品套餐收藏列表
	let CollectList = (params = {}) => vm.$u.post('api/Collect/CollectList', params);

	// 取消收藏商品套餐
	let UpCollect = (params = {}) => vm.$u.post('api/Collect/UpCollect', params);

	// 案例收藏列表
	let CaseCollectList = (params = {}) => vm.$u.post('api/Collect/CaseCollectList', params);

	// 取消案例收藏
	let CaseCollect = (params = {}) => vm.$u.post('api/Example/CaseCollect', params);

	// 个人足迹列表
	let BrowseList = (params = {}) => vm.$u.post('api/Browse/BrowseList', params);

	// 订单列表
	let orderList = (params = {}) => vm.$u.post('api/Myorder/OrderList', params);

	// 取消订单
	let OrderCancel = (params = {}) => vm.$u.post('api/Myorder/OrderCancel', params);

	// 删除订单
	let OrderDelete = (params = {}) => vm.$u.post('api/Myorder/OrderDelete', params);

	// 确认收货
	let OrderAffirm = (params = {}) => vm.$u.post('api/Myorder/OrderAffirm', params);

	// 订单详情
	let OrderInfo = (params = {}) => vm.$u.post('api/Myorder/OrderInfo', params);

	// 再次支付
	let againPay = (params = {}) => vm.$u.post('api/Order/againPay', params);

	// 我的足迹
	let BrowseItem = (params = {}) => vm.$u.post('api/Browse/BrowseItem', params);
	
	// 用户足迹
	let BrowseItems = (params = {}) => vm.$u.post('api/Browse/BrowseItems', params);

	// 售后列表
	let saleList = (params = {}) => vm.$u.post('api/Orderlist/order_after_list', params);

	// 售后上传
	let saleAdd = (params = {}) => vm.$u.post('api/Orderlist/order_after_add', params);
	
	// 售后上传视频
	let saleUpVideo = (params = {}) => vm.$u.post('api/Upimg/UpVideo', params);

	// 售后上传图片
	let saleAddImg = (params = {}) => vm.$u.post('api/Orderlist/AddImg', params);

	// 售后删除图片
	let saleDelImg = (params = {}) => vm.$u.post('api/Orderlist/DelImg', params);

	// 修改售后
	let orderAfterUp = (params = {}) => vm.$u.post('api/Orderlist/order_after_up', params);

	// 我的名片
	let appCreateQr = (params = {}) => vm.$u.post('api/Qrcodes/app_create_qr', params);

	// 海报列表
	let PosterLists = (params = {}) => vm.$u.post('api/poster/Lists', params);


	// 优惠券列表
	let CouponList = (params = {}) => vm.$u.post('api/Coupon/CouponList', params);

	// 个人中心
	let UserInfo = (params = {}) => vm.$u.post('api/User/UserInfo', params);

	// 用户动态
	let BrowseUserList = (params = {}) => vm.$u.post('api/Browse/BrowseUserList', params);

	// 分销商-我的业绩
	let UserInfoData = (params = {}) => vm.$u.post('api/Data/UserInfoData', params);

	// 用户列表
	let UserList = (params = {}) => vm.$u.post('api/User/UserList', params);

	// 员工列表
	let StaffLists = (params = {}) => vm.$u.post('api/Staff/Lists', params);

	// 添加员工
	let StaffAdd = (params = {}) => vm.$u.post('api/Staff/Add', params);

	// 删除员工
	let StaffDelate = (params = {}) => vm.$u.post('api/Staff/Delate', params);

	// 数据展示(二级页)
	let UserMoneyData = (params = {}) => vm.$u.post('api/Data/UserMoneyData', params);

	// 数据展示(二级页)
	let UserShareData = (params = {}) => vm.$u.post('api/Data/UserShareData', params);

	// 案例列表
	let ExampleCaseList = (params = {}) => vm.$u.post('api/Example/CaseList', params);

	// 案例详情
	let ExampleCaseData = (params = {}) => vm.$u.post('api/Example/CaseInfo', params);

	// 案例详情-推荐案例
	let ExampleRecommendCase = (params = {}) => vm.$u.post('api/Example/RecommendCase', params);

	//案例留言
	let ExampleAddCaseComment = (params = {}) => vm.$u.post('api/Example/AddCaseComment', params);

	//案例收藏/取消收藏
	let ExampleCaseCollect = (params = {}) => vm.$u.post('api/Example/CaseCollect', params);

	//案例商品列表
	let ExampleGoodsList = (params = {}) => vm.$u.post('api/Example/GoodsList', params);

	//案例详情-留言列表
	let ExampleCommentList = (params = {}) => vm.$u.post('api/Example/CommentList', params);

	//更新用户名字和头像
	let UserUp = (params = {}) => vm.$u.post('api/User/Up', params);

	//我的消息
	let NoticeList = (params = {}) => vm.$u.post('api/Notice/NoticeList', params);

	//我的消息详情
	let NoticeInfo = (params = {}) => vm.$u.post('api/Notice/NoticeInfo', params);

	//我的钱包
	let MyWallet = (params = {}) => vm.$u.post('api/User/MyWallet', params);

	//绑定支付宝
	let BindingWallet = (params = {}) => vm.$u.post('api/User/BindingWallet', params);

	//设置支付密码
	let UpPrivateKey = (params = {}) => vm.$u.post('api/User/UpPrivateKey', params);

	//忘记支付密码
	let UpWalletPsd = (params = {}) => vm.$u.post('api/User/UpWalletPsd', params);

	//提现
	let WalletWithdrawal = (params = {}) => vm.$u.post('api/User/WalletWithdrawal', params);

	//钱包明细
	let WalletDetailed = (params = {}) => vm.$u.post('api/User/WalletDetailed', params);

	//提现记录
	let WithdrawalLog = (params = {}) => vm.$u.post('api/User/WithdrawalLog', params);
	
	//供应商申请
	let FactoryAdd = (params = {}) => vm.$u.post('api/Factory/Add', params);
	
	//签约支付
	let OrderStorePay = (params = {}) => vm.$u.post('api/Order/StorePay', params);
	
	//再次支付选择优惠券
	let SelectCoupon = (params = {}) => vm.$u.post('api/Order/SelectCoupon', params);
	
	// 货期提问
	let AddOrderGoodsAsk = (params = {}) => vm.$u.post('api/Ask/AddOrderGoodsAsk',params);
	
	// 货期咨询列表
	let OrderGoodsAskLists = (params = {}) => vm.$u.post('api/Ask/OrderGoodsAskLists',params);
	
	// 货期咨询回复
	let AddOrderGoodsAnswer = (params = {}) => vm.$u.post('api/Ask/AddOrderGoodsAnswer',params);
	
	// 回复列表
	let OrderGoodsAnswerList = (params = {}) => vm.$u.post('api/Ask/OrderGoodsAnswerList',params);
	
	// 审核回答
	let OrderGoodsAnswerCheck = (params = {}) => vm.$u.post('api/Ask/OrderGoodsAnswerCheck',params);
	
	// 订单商品物流
	let OrderGoodsExpress = (params = {}) => vm.$u.post('api/Myorder/OrderGoodsExpress',params);
	
	// 挂载到vm.$u.api(因为vm就是this，也即this.$u.apiWei)下
	vm.$u.apiWei = {
		PhoneGetCode,
		NewPhoneLogin,
		WeChatBinding,
		addressList,
		AddressAdd,
		AddressUpdate,
		AddressDelete,
		CollectList,
		UpCollect,
		CaseCollectList,
		CaseCollect,
		BrowseList,
		orderList,
		OrderCancel,
		OrderDelete,
		OrderAffirm,
		OrderInfo,
		againPay,
		BrowseItem,
		saleList,
		saleAdd,
		saleAddImg,
		saleDelImg,
		orderAfterUp,
		appCreateQr,
		CouponList,
		UserInfo,
		BrowseUserList,
		UserList,
		UserInfoData,
		StaffLists,
		StaffAdd,
		StaffDelate,
		UserMoneyData,
		UserShareData,
		PosterLists,
		ExampleCaseList,
		ExampleCaseData,
		ExampleRecommendCase,
		ExampleAddCaseComment,
		ExampleCaseCollect,
		ExampleGoodsList,
		ExampleCommentList,
		UserUp,
		NoticeList,
		NoticeInfo,
		MyWallet,
		BindingWallet,
		UpPrivateKey,
		UpWalletPsd,
		WalletWithdrawal,
		WalletDetailed,
		WithdrawalLog,
		BrowseItems,
		FactoryAdd,
		OrderStorePay,
		SelectCoupon,
		saleUpVideo,
		AddOrderGoodsAsk,
		OrderGoodsAskLists,
		AddOrderGoodsAnswer,
		OrderGoodsAnswerList,
		OrderGoodsAnswerCheck,
		OrderGoodsExpress
	};
}

export default {
	install
}
